// all u can eat
// ff869bb8
// ff8690e4 -> ff869054

*/

#include "stubs_asm.h"

NHSTUB(OpLog.Create, 0xff824538)
NHSTUB(OpLog.Show, 0xff86af94)
NHSTUB(OpLog.Play, 0xff86b030)
NHSTUB(OpLog.ReadFromROM, 0xff86a71c)
NHSTUB(OpLog.ReadFromSD, 0xff86a79c)
NHSTUB(OpLog.WriteToSD, 0xff86ab44)
NHSTUB(OpLog.WriteToROM, 0xff86af4c)
NHSTUB(OpLog.Get, 0xff86af74)
NHSTUB(OpLog.Stop, 0xff86a6f0)
NHSTUB(OpLog.Start, 0xff86b164)

NHSTUB(ExMem.View, 0xff8245b8)
NHSTUB(ExMem.AllocUncacheable, 0xff8245bc)
NHSTUB(ExMem.FreeUncacheable, 0xff8245c0)
NHSTUB(ExMem.AllocCacheable, 0xff8245c4)
NHSTUB(ExMem.FreeCacheable, 0xff8245c8)

NHSTUB(StartCameraLog, 0xff824524)
NHSTUB(ShowCameraLog, 0xff824528)
NHSTUB(ShowCameraLogInfo, 0xff82452c)
NHSTUB(StopCameraLog, 0xff824530)

NHSTUB(PutsCameraLogEvent, 0xff824534)
NHSTUB(drysh, 0xff814e1c)
NHSTUB(NewTaskShell, 0xff8245b4)
NHSTUB(ExMem, 0xff8245cc)
NHSTUB(StartRedirectUART, 0xff81d04c)
NHSTUB(StopRedirectUART, 0xff81d164)

NHSTUB(SS.Create, 0xff85baa0)

NHSTUB(SetUSBToDCPMode, 0xff8389c0)
NHSTUB(RefreshUSBMode, 0xff838b58)

NHSTUB(InitializeDCPClassFunctions, 0xff8dc824)
NHSTUB(TerminateDCPClassFunctions, 0xff8dc828)

//NHSTUB(LoadScript, 0xff865f44)
//NHSTUB(UnLoadScript, 0xff865e90)
NHSTUB(PTR_Printf, 0xff865f38)

NHSTUB(RomCheckSum, 0xff86be4c)


NHSTUB(PostLogicalEventToUI, 0xff872f50)
NHSTUB(PostLogicalEventForNotPowerType, 0xff872f04)
NHSTUB(PostEventShootSeqToUI, 0xff872fc8)
NHSTUB(ShowLogicalEventName, 0xff87301c)

NHSTUB(SetAutoShutdownTime, 0xff873908)
NHSTUB(LockMainPower, 0xff873894)
NHSTUB(UnlockMainPower, 0xff8737e8)

NHSTUB(HardwareDefect, 0xff873b30)
NHSTUB(HardwareDefectWithRestart, 0xff873ae0)

NHSTUB(MechaUnRegisterEventProcedure, 0xff9364dc)
NHSTUB(Mecha.Create, 0xff93651c)

NHSTUB(DispDev_EnableEventProc, 0xff936670)

NHSTUB(GetAdVBattBottom, 0xff9366dc)
NHSTUB(GetAdChValue, 0xff9366e0)
NHSTUB(BeepDrive, 0xff9366e4)
NHSTUB(LEDDrive, 0xff9366ec)
NHSTUB(VbattGet, 0xff9366e8)
NHSTUB(ShowPhySwStatus, 0xff9366f0)
NHSTUB(SetRawSWCheckMode, 0xff936700)
NHSTUB(OnPrintPhySw, 0xff936710)
NHSTUB(OffPrintPhySw, 0xff936720)
NHSTUB(GetSwitchStatus, 0xff936730)
NHSTUB(ShowSDStatus, 0xff936734)
NHSTUB(GetSDDetect, 0xff936744)
NHSTUB(GetSDProtect, 0xff936748)
NHSTUB(SetIgnoreAVJACK, 0xff93674c)
NHSTUB(GetDialEventId, 0xff93675c)
NHSTUB(SetSDPwrPort, 0xff9366b0)
NHSTUB(Driver_EnableEventProc, 0xff936760)
NHSTUB(Driver.Create, 0xff936760)

NHSTUB(strcpy, 0xff81d88c)
NHSTUB(strlen, 0xff81d8e8)
NHSTUB(strcmp, 0xff81d8a4)
NHSTUB(sprintf, 0xff81d7c8)
NHSTUB(memcpy, 0xff892234)
NHSTUB(memset, 0xff9aafac)
NHSTUB(memcmp, 0xff81d90c)
NHSTUB(sscanf, 0xff9ab4f0)
NHSTUB(atol, 0xff892014)
NHSTUB(Open, 0xff823e2c)
NHSTUB(Read, 0xff823efc)
NHSTUB(Write, 0xff823f00)
NHSTUB(Close, 0xff823e54)
NHSTUB(Lseek, 0xff82405c)
NHSTUB(Fopen_Fut, 0xff82383c)
NHSTUB(Fread_Fut, 0xff823928)
NHSTUB(Fwrite_Fut, 0xff82397c)
NHSTUB(Fclose_Fut, 0xff82387c)
NHSTUB(Fseek_Fut, 0xff823a1c)
NHSTUB(CreateCountingSemaphore, 0xff81b670)
NHSTUB(DeleteSemaphore, 0xff81b6c8)
NHSTUB(TakeSemaphore, 0xff81b774)
NHSTUB(GiveSemaphore, 0xff81b844)
NHSTUB(GetTimeOfSystem, 0xff866df8)
NHSTUB(CreateTask, 0xff81b8e0)
NHSTUB(ExitTask, 0xff81bb70)
NHSTUB(SleepTask, 0xff8284b4)
NHSTUB(CPrintf, 0xff81c6d0)
NHSTUB(CPutChar, 0xff81c72c)
NHSTUB(GetCh, 0xff81c758)
NHSTUB(OpenConsole, 0xff81c808)
NHSTUB(CloseConsole, 0xff81c96c)
NHSTUB(GetStringWithPrompt, 0xff81c7a8)
NHSTUB(RotateConsoleZOder, 0xff81c4c0)
NHSTUB(ExecuteEventProcedure, 0xff8691f8)
NHSTUB(ExportToEventProcedure, 0xff869bb8)
NHSTUB(DeleteProxyOfEventProcedure, 0xff869c1c)
NHSTUB(CreateProxyOfEventProcedure, 0xff869bc4)
NHSTUB(WriteToRom, 0xff93ee10)
NHSTUB(EraseSectorOfRom, 0xff93eec0)
NHSTUB(EraseSignature, 0xff936980)
NHSTUB(GetSystemTime, 0xffa27044)
NHSTUB(ShowAllTaskInfo, 0xff936a08)
NHSTUB(memShow, 0xff810bd0)
NHSTUB(Wait, 0xff9369f4)
NHSTUB(AllocateMemory, 0xffa26fec)
NHSTUB(FreeMemory, 0xffa26fe4)
NHSTUB(Poke32, 0xff9369b8)
NHSTUB(Poke16, 0xff9369c8)
NHSTUB(Poke8, 0xff9369d8)
NHSTUB(Peek32, 0xff9369e8)
NHSTUB(Peek16, 0xff9369ec)
NHSTUB(Peek8, 0xff9369f0)
NHSTUB(Dump, 0xff936994)
NHSTUB(Dump32, 0xff9369a4)
NHSTUB(SDump, 0xff936990)
NHSTUB(MonSelEvent, 0xff936974)
NHSTUB(exec, 0xff936a04)

NHSTUB(MakeBootDisk, 0xffa27760)
NHSTUB(MakeScriptDisk, 0xffa27774)
NHSTUB(Printf, 0xff936970)
NHSTUB(LoadScript, 0xff865f44)
NHSTUB(UnLoadScript, 0xff865e90)
NHSTUB(GetBuildDate, 0xff9371d4)
NHSTUB(GetBuildTime, 0xff86bbe8)
NHSTUB(GetFirmwareVersion, 0xff86bbf0)
NHSTUB(CheckSumAll, 0xff86bcfc)
NHSTUB(MemoryChecker, 0xff936978)
NHSTUB(VerifyByte, 0xff93697c)
NHSTUB(StartWDT, 0xff86ba8c)
NHSTUB(StopWDT, 0xff86baf0)
NHSTUB(EraseLogSector, 0xff86382c)
NHSTUB(GetLogToFile, 0xff8635e8)
NHSTUB(AdditionAgentRAM, 0xffa27788)
NHSTUB(System.Delete, 0xff936a18)

NHSTUB(SystemEventInit, 0xff9370a8)
NHSTUB(System.Create, 0xff9370a8)

NHSTUB(UIFS_SetDialPlay, 0xff937440)
NHSTUB(UIFS_SetDialStillRec, 0xff9373f0)
NHSTUB(SetScriptMode, 0xff873680)

NHSTUB(UIFS_StopPostingUIEvent, 0xff937674)
NHSTUB(UIFS_RestartPostingUIEvent, 0xff937678)
NHSTUB(UIFS_SetCaptureModeToP, 0xff93767c)
NHSTUB(UIFS_SetCaptureModeToTv, 0xff9376b0)
NHSTUB(UIFS_SetCaptureModeToM, 0xff9376e4)
NHSTUB(UIFS_SetCaptureModeToMacro, 0xff937718)
NHSTUB(UIFS_SetCaptureModeToISO3200, 0xff937720)
NHSTUB(UIFS_Capture, 0xff937728)
NHSTUB(UIFS_CaptureNoneStop, 0xff93772c)
NHSTUB(UIFS_StartMovieRecord, 0xff937730)
NHSTUB(UIFS_StopMovieRecord, 0xff937734)
NHSTUB(UIFS_OpenPopupStrobe, 0xff937468)
NHSTUB(UIFS_ClosePopupStrobe, 0xff937498)
NHSTUB(UIFS_MountExtFlash, 0xff9374c8)
NHSTUB(UIFS_UnmountExtFlash, 0xff9374f8)
NHSTUB(UIFS_PressTeleButton, 0xff937528)
NHSTUB(UIFS_UnpressTeleButton, 0xff937564)
NHSTUB(UIFS_PressWideButton, 0xff93759c)
NHSTUB(UIFS_UnpressWideButton, 0xff9375d8)
NHSTUB(UIFS_ConnectVideo, 0xff937610)
NHSTUB(UIFS_DisconnectVideo, 0xff937640)
NHSTUB(UIFS_MoveZoomTo, 0xff937670)
NHSTUB(UIFS_SetDialMovieRec, 0xff937418)
NHSTUB(UIFS_StartClockMode, 0xff937738)
NHSTUB(StartClockMode, 0xff937738)
NHSTUB(UIFS_EndClockMode, 0xff937748)
NHSTUB(EndClockMode, 0xff937748)
NHSTUB(UIFS_StartRecordSound, 0xff937758)
NHSTUB(UIFS_StopRecordSound, 0xff93775c)
NHSTUB(UIFS_DeleteAllSound, 0xff937760)
NHSTUB(UIFS_WriteFirmInfoToFile, 0xff937768)
NHSTUB(UIFS_GetMovieRecoadableNumber, 0xff93776c)
NHSTUB(UIFS_GetStillShotableNumber, 0xff9377b4)
NHSTUB(UIFS_SetCradleSetting, 0xff937764)

NHSTUB(UiEvnt_StartDisguiseCradleStatus, 0xff8736a8)
NHSTUB(UiEvnt_StopDisguiseCradleStatus, 0xff8736b8)
NHSTUB(PTM_RestoreUIProperty, 0xff874268)
NHSTUB(PTM_AllResetToFactorySetting, 0xff873d44)
NHSTUB(PTM_AllReset, 0xff873d54)
NHSTUB(PTM_GetWorkingCaptureMode, 0xff8741b8)
NHSTUB(PTM_SetCurrentCaptureMode, 0xff8740a0)
NHSTUB(PTM_SetCurrentItem, 0xff8741bc)
NHSTUB(PTM_GetCurrentItem, 0xff8741c8)
NHSTUB(PTM_NextItem, 0xff874234)
NHSTUB(PTM_PrevItem, 0xff874238)
NHSTUB(PTM_BackupUIProperty, 0xff874264)
NHSTUB(PTM_SetProprietyEnable, 0xff87424c)
NHSTUB(PTM_IsEnableItem, 0xff874248)
NHSTUB(CreateController, 0xff872748)
NHSTUB(DeleteController, 0xff872804)
NHSTUB(MoveControllerToTopOfZOrder, 0xff872988)
NHSTUB(GetSelfControllerHandle, 0xff872acc)
NHSTUB(SetCurrentCaptureModeType, 0xff87a4b0)
NHSTUB(GetCurrentCaptureModeType, 0xff87a4ec)
NHSTUB(ExecuteResetFactoryWithRomWrite, 0xff95b798)
NHSTUB(StartGUISystem, 0xff891ed4)

NHSTUB(UI_ShowStateOfRecMode, 0xff9372f0)
NHSTUB(IsControlEventActive, 0xff8735c0)
NHSTUB(FmtMenu_ExecuteQuickFormat, 0xff871a64)

NHSTUB(UI_RegistDebugEventProc, 0xff93811c)
NHSTUB(UI.Create, 0xff93811c)
NHSTUB(UI.CreatePublic, 0xff9377e8)

NHSTUB(FA.Delete, 0xff9382c0)
NHSTUB(FA.Create, 0xff9382d4)
NHSTUB(DispDev.Create, 0xff9382f8)

NHSTUB(Capture.Create, 0xff938368)
NHSTUB(EngineDriver.Create, 0xff9383a8)

NHSTUB(StartImStEventProc, 0xffa23fd4)

NHSTUB(StartDirectTransferManager, 0xffa4385c)

NHSTUB(StartDtConfirmMenu, 0xffa44538)
NHSTUB(StoptDtConfirmMenu, 0xffa443f0)

NHSTUB(StartDtExecuteMenu, 0xffa99cb8)
NHSTUB(StoptDtExecuteMenu, 0xffa9992c)


// extra bonus

NHSTUB(DisableIRQ, 0xff810578)
NHSTUB(DisableIRQ_, 0xff81b5dc)
NHSTUB(DisableIRQ__, 0xff827d28)

NHSTUB(EnableIRQ_set_r0, 0xff81058c)
NHSTUB(EnableIRQ_set_r0_, 0xff81b5e0)
NHSTUB(EnableIRQ_set_r0__, 0xff827d2c)

NHSTUB(EnableIRQ, 0xff8105a0)
NHSTUB(EnableIRQ_, 0xff81b600)
NHSTUB(EnableIRQ__, 0xff827d30)

NHSTUB(dmSetup, 0xFF81972C)
NHSTUB(termDriverInit, 0xFF8149C8)
NHSTUB(termDeviceCreate, 0xFF814AB4)
NHSTUB(stdioSetup, 0xFF813564)
NHSTUB(stdlibSetup, 0xFF8192B4)
NHSTUB(armlib_setup, 0xFF8114B8)

NHSTUB(StartDryOs, 0xff815ca0)


